using System;

namespace Qplus.protocol
{

    /**
     * 
     * 进入房间应答
     *
     */
    public class U2C_RESP_ENTER_ROOM : InPacket{
    //	kal_uint32 roomID; 房间号码
    //	kal_uint8 result; (0成功，1 失败)

	    /**
	     * 房间号码
	     */
	    private long roomID;
	    /**
	     * 结果(0成功，1失败)
	     */
	    private int result;
	
	    
	    protected override void parseBody(byte[] data, int offset, int count) {
		    roomID = get4(data);
		    result = get1(data);
	    }

	    public long getRoomID() {
		    return roomID;
	    }

	    public void setRoomID(long roomid) {
		    this.roomID = roomid;
	    }

	    public int getResult() {
		    return result;
	    }

	    public void setResult(int result) {
		    this.result = result;
	    }
	
	}

}
